package com.qianli.cashmama.trade.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.qianli.cashmama.trade.dao.TBizRecordDao;
import com.qianli.cashmama.trade.entity.TBizRecordEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: sm
* Date: 2018-01-25
* Time: 17:18:54.045
*/

@Repository
public class TBizRecordDaoImpl extends AbstractBaseMapper<TBizRecordEntity> implements TBizRecordDao {


    @Override
    public TBizRecordEntity selectOneByBizNo(String bizNo) {
        Map<String, Object> map = new HashMap<>();
        map.put("bizNo", bizNo);
        return getSqlSession().selectOne(getStatement("selectOneByBizNo"), map);
    }

    public int deleteTBizRecordByInnerNo(String innerNo, Integer bizType) {
        Map<String, Object> map = new HashMap<>();
        map.put("innerNo", innerNo);
        map.put("bizType", bizType);
        return getSqlSession().update(getStatement("deleteTBizRecordByInnerNo"), map);
    }
}